package com.dx.mes.common.dao.impl;

import org.springframework.stereotype.Repository;

import com.dx.common.table.ppt.Ret_prd_out;
import com.dx.common.table.ppt.Ret_prd_outId;
import com.dx.mes.common.core.dao.impl.GenericHibernateDao;
import com.dx.mes.common.dao.IRetPrdOutDao;



@Repository
public class RetPrdOutHibernateDao extends
		GenericHibernateDao<Ret_prd_out, Ret_prd_outId> implements IRetPrdOutDao {

	public Ret_prd_out getPrdOutRecord(String prd_seq_id_fk,
			String to_path_id_fk, String to_path_ver_fk) {
		String querySql = "FROM Ret_prd_out WHERE id.prd_seq_id_fk ='"
				+ prd_seq_id_fk + "' AND to_path_id_fk ='" + to_path_id_fk
				+ "' AND to_path_ver_fk = '" + to_path_ver_fk+ "'";
		return (Ret_prd_out) this.comTblRead(querySql);
	}
}
